<?php
		require_once "../funciones.php";
		$link_caweb = con_caweb();

		$q=$_POST["q"];

		$link_caweb = con_caweb();
		$result65 ="SELECT * FROM taxonomia WHERE clase='$q' GROUP BY codigosubclase";
                $result65=mysql_query($result65,$link_caweb) or die('Error taxonomia, '.mysql_error());
                echo "Subclase:  <select name='subclase' size='1' id='descripcionsub' onchange='
				 funcion_pasasesion(\"codigosubclase\",this.value); '>";
                echo "<option value='XXX' SELECTED>Seleccionar..</option>";
                while($row65 = mysql_fetch_array($result65))
                {
                ?>
                <option value="<? echo $row65["codigosubclase"]; ?>"><? echo $row65["descripcionsub"]; ?> </option>
                <?
                }
                echo "</select>";

?>


